package top.jiachunlei.decorator;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/12/2 22:08
 */
public class RedShapeDecorator extends ShapeDecorator
{
    public RedShapeDecorator(Shape shapeD)
    {
        super(shapeD);
    }

    @Override
    public void draw()
    {
        shapeD.draw();
        setRedBorder(shapeD);
    }

    private void setRedBorder(Shape decoratedShape){
        System.out.println("Border Color: Red");
    }
}
